﻿using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AspNet.Identity.Dapper
{
    public class IdentityRole:IRole<Guid>
    {
        public IdentityRole()
        {
        }

        public IdentityRole(string name) : this()
        {
            Name = name;
        }

        public IdentityRole(Guid id,string name)
        {
            Id = id;
            Name = name;
        }


        protected string IdString { get; set; }
        public Guid Id
        {
            get
            {
                return new Guid(IdString);
            }
            set
            {
                IdString = value.ToString();
            }
        }


        public string Name { get; set; }
    }
}
